//
//  ZPayResultFootView.m
//  DoctorFAQs
//
//  Created by zjq on 17/2/16.
//  Copyright © 2017年 zjq. All rights reserved.
//

#import "ZPayResultFootView.h"

@implementation ZPayResultFootView

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self initlizeInterface];
    }
    return self;
}
- (void)initlizeInterface {
    self.backgroundColor = [UIColor whiteColor];
    _backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [_backBtn setTitle:@"返回回复页" forState:UIControlStateNormal];
    [_backBtn setTitleColor:KHGreenColor forState:UIControlStateNormal];
    _backBtn.layer.borderColor = [KHGreenColor CGColor];
    _backBtn.layer.borderWidth = 1.0f;
    _backBtn.layer.cornerRadius = 2.5f;
    _backBtn.layer.masksToBounds = YES;
    
    _assessBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [_assessBtn setBackgroundColor:KHGreenColor];
    [_assessBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    _assessBtn.layer.cornerRadius = 2.5f;
    _assessBtn.layer.masksToBounds = YES;
    [self addSubview:_backBtn];
    [self addSubview:_assessBtn];
    [_backBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(15*xsIZE);
        make.width.offset(130*xsIZE);
        make.height.offset(40*ysIZE);
        make.top.equalTo(self);
    }];
    [_assessBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self).offset(-15*xsIZE);
        make.top.width.height.equalTo(_backBtn);
    }];
}

@end
